import request from '@/utils/request'
const baseUrl = '/plant/shipping'

export function getShippingPage (params) {
  return request({
    url: `${baseUrl}`,
    method: 'get',
    params: params
  })
}


export function saveShipping (data) {
  return request({
    url: `${baseUrl}`,
    method: 'post',
    data: data
  })
}

export function updateShipping (data) {
  return request({
    url: `${baseUrl}`,
    method: 'put',
    data: data
  })
}

export function getShippingById (id) {
  return request({
    url: `${baseUrl}/${id}`,
    method: 'get',
  })
}


export function deleteShipping (ids) {
  return request({
    url: `${baseUrl}`,
    method: 'delete',
    data: ids
  })
}
